package com.ozo.cloud.api.manage.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 部门视图
 *
 * @author qiangesoft
 * @date 2024-10-29
 */
@Schema(description = "部门视图")
@Data
@NoArgsConstructor
public class SysDeptVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "上级id")
    private Long parentId;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "排序号")
    private Integer orderNum;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态：1-启用 0-禁用")
    private String status;

    @Schema(description = "逻辑删除")
    private Boolean delFlag;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "子级")
    private List<SysDeptVO> children = new ArrayList<>();

}
